/*
 * Copyright (c) 2013-2015 Charkey. All rights reserved.
 *
 * This software is the confidential and proprietary information of Charkey.
 * You shall not disclose such Confidential Information and shall use it only
 * in accordance with the terms of the agreements you entered into with Charkey.
 *
 * Charkey MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE SOFTWARE,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
 *
 * Charkey SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING,
 * MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
 */

package cn.simastudio.talos.sdk.model;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * Usage: JSON模型，带分页
 *
 * @author Charkey
 * @date 2015/5/23 22:12
 */
public class PagingJsonResult extends CommonJsonResult implements java.io.Serializable {

    private static final long serialVersionUID = -1349031908830176234L;

    /**
     * 请求返回内容总页数
     */
    @JSONField(name = "total_pages")
    private int totalPages = 0;

    /**
     * 请求返回内容当前页
     */
    @JSONField(name = "current_page")
    private int currentPage = 0;

    /**
     * 请求返回内容总记录数
     */
    @JSONField(name = "total_records")
    private int totalRecords = 0;

    /**
     * 请求内容分页大小
     */
    @JSONField(name = "page_rows")
    private int pageRows = 10;

    /**
     * 请求内容排序字段
     */
    private String sort;

    /**
     * 请求内容排序方式
     */
    private String order;

    public int getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(int totalPages) {
        this.totalPages = totalPages;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getTotalRecords() {
        return totalRecords;
    }

    public void setTotalRecords(int totalRecords) {
        this.totalRecords = totalRecords;
    }

    public int getPageRows() {
        return pageRows;
    }

    public void setPageRows(int pageRows) {
        this.pageRows = pageRows;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }
}
